Exemple #1
0
        private void MenuSignaturLoad_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Filter = "Signatur Struktur (*.xml)|*.xml";
            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            XmlSerializer xml     = new XmlSerializer(typeof(Signatur));
            Signatur      tempBar = null;

            using (Stream s = File.OpenRead(dlg.FileName))
                try {
                    tempBar = xml.Deserialize(s) as Signatur;
                } catch (Exception ex) {
                    System.Diagnostics.Debug.WriteLine(ex);
                }

            if (tempBar == null)
            {
                MessageBox.Show("Fehler beim öffnen der Datei!\nFalls dies öfter passiert, wende dich bitte an GodLesZ.", "Fehler beim laden", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            mSignatur = tempBar;
            mSignatur.ReInitialize(mAssembly, signaturImage, comboCustomFont);
            InitializeCombos(true, false);
            InitializeForm();
            InitializeCombos(false, true);
            mSignatur.Initialized = true;
            mSignatur.Update();
        }
Exemple #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            mAssembly = System.Reflection.Assembly.GetExecutingAssembly();

            Text += string.Format(" v{0} - by GodLesZ", mAssembly.ShortVersion());

            mSignatur            = new Signatur(mAssembly, signaturImage, comboCustomFont);
            mInputTimer          = new Timer();
            mInputTimer.Interval = 350;
            mInputTimer.Tick    += new EventHandler(mInputTimer_Tick);
            mInputTimer.Enabled  = true;
            mInputTimer.Stop();

            InitializeBackgrounds();
            InitializeCombos(true, true);

            InitializeSignatur();
            mSignatur.Update();
        }
Exemple #3
0
		private void MenuSignaturLoad_Click( object sender, EventArgs e ) {
			OpenFileDialog dlg = new OpenFileDialog();
			dlg.Filter = "Signatur Struktur (*.xml)|*.xml";
			if( dlg.ShowDialog() != DialogResult.OK )
				return;

			XmlSerializer xml = new XmlSerializer( typeof( Signatur ) );
			Signatur tempBar = null;
			using( Stream s = File.OpenRead( dlg.FileName ) )
				try {
					tempBar = xml.Deserialize( s ) as Signatur;
				} catch( Exception ex ) {
					System.Diagnostics.Debug.WriteLine( ex );
				}

			if( tempBar == null ) {
				MessageBox.Show( "Fehler beim öffnen der Datei!\nFalls dies öfter passiert, wende dich bitte an GodLesZ.", "Fehler beim laden", MessageBoxButtons.OK, MessageBoxIcon.Error );
				return;
			}

			mSignatur = tempBar;
			mSignatur.ReInitialize( mAssembly, signaturImage, comboCustomFont );
			InitializeCombos( true, false );
			InitializeForm();
			InitializeCombos( false, true );
			mSignatur.Initialized = true;
			mSignatur.Update();
		}
Exemple #4
0
		private void frmMain_Load( object sender, EventArgs e ) {
			mAssembly = System.Reflection.Assembly.GetExecutingAssembly();

			Text += string.Format( " v{0} - by GodLesZ", mAssembly.ShortVersion() );

			mSignatur = new Signatur( mAssembly, signaturImage, comboCustomFont );
			mInputTimer = new Timer();
			mInputTimer.Interval = 350;
			mInputTimer.Tick += new EventHandler( mInputTimer_Tick );
			mInputTimer.Enabled = true;
			mInputTimer.Stop();

			InitializeBackgrounds();
			InitializeCombos( true, true );

			InitializeSignatur();
			mSignatur.Update();
		}