コード例 #1
0
        private void btnEditKeyFile_Click(object sender, RoutedEventArgs e)
        {
            var selectedKeyFile = lstKeys.Items.OfType <File>().Where(k => k.IsSelected).FirstOrDefault();

            if (selectedKeyFile != null)
            {
                EditKeyFileWindow ekf = new EditKeyFileWindow(Main, tools, this, selectedKeyFile.FileName);
                ekf.ShowDialog();
            }
        }
コード例 #2
0
        private void btnNewKeyFile_Click(object sender, RoutedEventArgs e)
        {
            EditKeyFileWindow ekf = new EditKeyFileWindow(Main, tools, this);

            ekf.ShowDialog();
        }