private void PrepareExit() { if (m_AppInput != null) { RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Ok"); appOutput.SetOutput(); } }
private void OnOK() { if (m_AppInput != null) { string strRes = txStr.Text; //NoEmpty... if (m_AppInput.GetFlag(1).Length > 0) { strRes = strRes.Trim(); if (strRes.Length == 0) { MessageBox.Show("Value must not be empty!"); return; } } //FileName... if (m_AppInput.GetFlag(1).Length > 0) { strRes = strRes.Trim(); string strChk = "\\/:*?\"<>|"; foreach (char cChk in strChk) { if (strRes.IndexOf(cChk) >= 0) { MessageBox.Show("Value must not contain characters of '" + strChk + "'!"); return; } } } /* * if( m_bUseHistory ) * { * string sPath = "Software\\Ressive.Hu\\" + csClsName + "\\History"; * sPath += "\\" + m_AppInput.CallerAppTitle; * sPath += "\\" + m_AppInput.ID; * RscRegistry.WriteString( HKEY.HKEY_CURRENT_USER, sPath, "LastOk", txStr.Text ); * * m_RegHistory.Add( txStr.Text ); * m_RegHistory.Flush(); * } */ RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Ok"); appOutput.SetData(0, txStr.Text); appOutput.SetOutput(); } this.NavigationService.GoBack(); }
private void m_AppFrame_OnExit(object sender, EventArgs e) { if (m_AppInput != null) { RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Exit"); appOutput.SetOutput(); } this.NavigationService.GoBack(); }
private void btnClose_Click(object sender, System.Windows.RoutedEventArgs e) { if (m_AppInput != null) { RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Close"); appOutput.SetOutput(); } this.NavigationService.GoBack(); }
protected override void OnBackKeyPress(CancelEventArgs e) { base.OnBackKeyPress(e); if (m_AppInput != null) { RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Back"); appOutput.SetOutput(); } //e.Cancel = true; }
private void OnCancel() { if (m_AppInput != null) { RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Cancel"); appOutput.SetOutput(); //Maybe user deleted some items... m_RegHistory.Flush(); } this.NavigationService.GoBack(); }
protected override void OnBackKeyPress(CancelEventArgs e) { base.OnBackKeyPress(e); if (m_AppInput != null) { RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Back"); appOutput.SetOutput(); //Maybe user deleted some items... m_RegHistory.Flush(); } //e.Cancel = true; }
private void DoOk(string sCustRes = "") { string sPath = "Software\\Ressive.Hu\\" + csClsName + "\\History"; sPath += "\\" + m_AppInput.CallerAppTitle; sPath += "\\" + m_AppInput.ID; RscRegistry.WriteString(HKEY.HKEY_CURRENT_USER, sPath, "LastOk", txSvrIP.Text); m_RegHistory.Add(txSvrIP.Text); m_RegHistory.Flush(); if (sCustRes.Length == 0) { sCustRes = txSvrIP.Text; } RscPageArgsRet appOutput = m_AppInput.CreateOutPut(); appOutput.SetFlag(0, "Ok"); appOutput.SetData(0, sCustRes); //txSvrIP.Text ); appOutput.SetOutput(); this.NavigationService.GoBack(); }