예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Config.Noty noty = new Config.Noty();
            noty.Autor   = Config.Cfg.UID;
            noty.EncrAlg = "RijndaelManaged";
            noteForm noteF = new noteForm(noty, true);

            this.Hide();
            noteF.ShowDialog();
        }
예제 #2
0
        private async void listNoty_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            foreach (Config.Noty noty in notyList)
            {
                if (listNoty.SelectedItems[0].Text != string.Empty)
                {
                    if (noty.ID.ToString() == listNoty.SelectedItems[0].Text)
                    {
                        Query.QNotyContent getContent = new Query.QNotyContent();
                        string             data       = await getContent.Notys(Convert.ToInt16(listNoty.SelectedItems[0].Text), StdConfig.MYSQLCONNECTION);

                        noty.Content = data;
                        noteForm noteF = new noteForm(noty, false);
                        this.Hide();
                        noteF.ShowDialog();
                    }
                }
            }
        }