Skip to content

Commit

Permalink
[수정] 1. 코드 최적화 설정 -> 비활성화
Browse files Browse the repository at this point in the history
2. 레이어 번역창 / 오버레이 번역창 사용시 끊기던 문제 수정
  • Loading branch information
killkimno committed May 5, 2021
1 parent 4104994 commit 095bd4c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
20 changes: 4 additions & 16 deletions MORT/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2524,12 +2524,14 @@ public void ProcessTrans(bool isSnap = false) //번역 시작 쓰
//이전과 같아서 그래픽만 갱신함.
if (MySettingManager.NowSkin == SettingManager.Skin.layer && FormManager.Instace.MyLayerTransForm != null)
{
BeginInvoke(new Action(FormManager.Instace.MyLayerTransForm.UpdatePaint));
FormManager.Instace.MyLayerTransForm.UpdatePaint();
//BeginInvoke(new Action(FormManager.Instace.MyLayerTransForm.UpdatePaint));
}

if (MySettingManager.NowSkin == SettingManager.Skin.over && FormManager.Instace.MyOverTransForm != null)
{
BeginInvoke(new Action(FormManager.Instace.MyOverTransForm.UpdatePaint));
FormManager.Instace.MyOverTransForm.UpdatePaint();
//BeginInvoke(new Action(FormManager.Instace.MyOverTransForm.UpdatePaint));
}

if (isSnap)
Expand Down Expand Up @@ -3970,20 +3972,6 @@ private void ShowDonationPopup()

FormManager.Instace.ShowDonatePage();

/*
if (DialogResult.OK == MessageBox.Show(new Form() { WindowState = FormWindowState.Maximized },
" 후원 계좌\n하나은행 764-910283-44807 김무영\n\n 네이버 페이\nID : killkimno\n받는사람 : 김무영\n", "후원하기", MessageBoxButtons.OK))
{
{
try
{
}
catch { }
}
}
*/
FormManager.Instace.ReSettingSubMenuTopMost();
}

Expand Down
6 changes: 3 additions & 3 deletions MORT/MORT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3757B925-61EE-4BB0-9EA7-9D53BAF6D67E}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MORT</RootNamespace>
<AssemblyName>MORT</AssemblyName>
Expand Down Expand Up @@ -51,9 +51,9 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>3</WarningLevel>
<WarningLevel>2</WarningLevel>
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Prefer32Bit>true</Prefer32Bit>
Expand Down
2 changes: 1 addition & 1 deletion MORT/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MORT/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ OCR 영역을 빠르게 추가하고 싶을 땐 빠른 OCR 영역을 사용하
<Value Profile="(Default)">색 영역을 이용해 추출한 문장의 폰트색을 지정합니다.</Value>
</Setting>
<Setting Name="MORT_RELEASE" Type="System.String" Scope="Application">
<Value Profile="(Default)">2021 04 15</Value>
<Value Profile="(Default)">2021 05 05</Value>
</Setting>
<Setting Name="TOOLTIP_MULTI_DB" Type="System.String" Scope="Application">
<Value Profile="(Default)">DB 번역문 검색시 OCR 추출 문장에 포함 된 번역문을 모두 가져옵니다.</Value>
Expand Down
5 changes: 3 additions & 2 deletions MORT/TransFormLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,12 @@ public void UpdatePaint()


// Update the window.

if(this == null || this.IsDisposed || this.isDestroyFormFlag)
{
return;
}

UpdateLayeredWindow(
this.Handle, // Handle to the layered window
screenDc, // Handle to the screen DC
Expand Down Expand Up @@ -436,7 +437,7 @@ public void UpdatePaint()
*/
}

Util.ShowLog("end");
//Util.ShowLog("end");
}


Expand Down
2 changes: 1 addition & 1 deletion MORT/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ OCR 영역을 빠르게 추가하고 싶을 땐 빠른 OCR 영역을 사용하
<value>색 영역을 이용해 추출한 문장의 폰트색을 지정합니다.</value>
</setting>
<setting name="MORT_RELEASE" serializeAs="String">
<value>2021 04 15</value>
<value>2021 05 05</value>
</setting>
<setting name="TOOLTIP_MULTI_DB" serializeAs="String">
<value>DB 번역문 검색시 OCR 추출 문장에 포함 된 번역문을 모두 가져옵니다.</value>
Expand Down

0 comments on commit 095bd4c

Please sign in to comment.