Beispiel #1
0
    static void Main()
    {
        Application.Init();
        Window window = new window("Hello Gtk");

        window.Show();
        Application.Run();
    }
Beispiel #2
0
        private void btn_generate_Click(object sender, RoutedEventArgs e)
        {
            string text    = TBX_text.Text;
            string message = "";

            byte[] pic  = null;
            int    size = 0;

            foreach (RadioButton rb in spSize.Children)
            {
                if ((bool)rb.IsChecked)
                {
                    size = Convert.ToInt32(rb.Content);
                    break;
                }
            }

            if (QR.genQR(text, size, out message, out pic))
            {
                window pickWindow = new window(pic, 150, 150);
                pickWindow.Show();
            }
        }